class DocumentDetail {
  final String id;
  final String name;
  final String content;
  final String? namespaceId;

  DocumentDetail({
    required this.id,
    required this.name,
    required this.content,
    this.namespaceId,
  });

  factory DocumentDetail.fromJson(Map<String, dynamic> json) {
    return DocumentDetail(
      id: json['id'].toString(),
      name: json['name'] as String,
      content: json['content'] as String,
      namespaceId: json['namespaceId']?.toString(),
    );
  }
}
